package com.example.springboot.service;

import com.example.springboot.entity.Book_Categories;
import com.example.springboot.mapper.CateMapper;
import org.springframework.stereotype.Service;

/**
 * 功能：
 * 作者：邓盛典
 * 日期：2024/8/16 2:32
 */
@Service
public class CateService {

    private final CateMapper cateMapper;

    public CateService(CateMapper cateMapper) {
        this.cateMapper = cateMapper;
    }

    public Book_Categories getCategoryById(Long id) {
        return cateMapper.selectById(id);
    }
}